gtk-demo: Fix revealer demo
authorMatthias Clasen <mclasen@redhat.com>
Sat, 7 May 2016 20:22:13 +0000 (16:22 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 7 May 2016 20:22:13 +0000 (16:22 -0400)
commitac5b48e40c7ab54b168627e389817030ef6c1620
treebb02004ace48c3b58358b995de26ca58aae9e17a
parent3cba63b2f890f5437b99145b7500f9407c30128c
gtk-demo: Fix revealer demo

This only used by luck before. We are changing a property from the
::notify handler for that property. Now that GtkRevealer is notifying
the property when it stops animations on unmap, we end up in a life
lock situation where we never make it out of the notify queue.

Fix this by not restarting the animation if the widget is unmapped.
demos/gtk-demo/revealer.c